
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Adrian
 */
public class Ejercicio {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("test.in"));
        int N = Integer.parseInt(br.readLine());
        int[] valores = new int[N];
        String[] values = new String[3];
        int i = 0;
        values = br.readLine().split(" ");
        while (i < N) {
            valores[i] = Integer.parseInt(values[i]);
            i++;
        }
        Arrays.sort(valores);
        System.out.printf("El valor mayor es: %d \n", valores[N - 1]);

    }

}
